﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using System.Windows.Controls;

namespace Kokomo
{
	public static class ScrollViewHelper
	{
		static ScrollViewHelper()
		{
			LineLeftCommand = new ParameterizedCommand(LineLeft);
			LineRightCommand = new ParameterizedCommand(LineRight);
		}

		public static ICommand LineLeftCommand { get; private set; }
		private static void LineLeft(object arg)
		{
			ScrollViewer viewer = arg as ScrollViewer;
			if (viewer == null) return;

			viewer.LineLeft();
		}

		public static ICommand LineRightCommand { get; private set; }
		private static void LineRight(object arg)
		{
			ScrollViewer viewer = arg as ScrollViewer;
			if (viewer == null) return;

			viewer.LineRight();
		}
	}
}
